<div class="usvn_info">
	<h1><?php echo T_("Groups"); ?></h1>
</div>
<table class="sortable" id="grps">
	<thead>
		<tr>
			<th><?php echo T_('Name'); ?></th>
			<th><?php echo T_('Description'); ?></th>
			<th class="sorttable_nosort" width="84px"><?php echo T_('Action'); ?></th>
		</tr>
	</thead>
	<tbody>

	<?php if (!empty($this->groups)): ?>
	<?php $deletetext = T_("Do you really want to delete group %s?"); ?>
	<?php foreach ($this->groups as $group): ?>
	<?php $editurl = $this->url(array('action' => 'edit', 'name' => $group->name)); ?>
		<tr>
			<td><a href="<?php echo $editurl ?>"><?php echo htmlspecialchars($group->name); ?></a></td>
			<td><a href="<?php echo $editurl ?>"><?php echo htmlspecialchars($group->description); ?></a></td>
			<td class="align-right">
				<?php echo $this->homeLinkGroup($group->name); ?>
				<?php echo $this->editLink('name', $group->name); ?>
				<?php echo $this->deleteLink('name', $group->name, $deletetext); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	<?php endif; ?>
	</tbody>
	<tfoot>
		<tr>
			<td colspan="3" class="align-right">
				<a href="<?php echo $this->url(array('action' => 'new')); ?>"><?php echo T_("Add new group"); ?></a>
				<?php echo $this->addLink(); ?>
			</td>
		</tr>
	</tfoot>
</table>
<br />

